const { gql } = require('apollo-server-express');

exports.typeDefs = gql`
  enum Hobby {
    SINGING
    DANCING
    RUNNING
    PLAYING
  }
  type Course {
    name: String
    score: Float
  }
  type Student {
    id: ID!
    age: Int
    gender: Boolean
    name: String
    hobby: Hobby
    course: [Course]
  }
  type Query {
    getScore(n: Int = 1): Student
  }
`;
